package top.suven.base.util.createcode;


import java.lang.reflect.Field;

public class FieldDoc {  
	
	    private DocDesc meta;
	    private Field field;  
	    private String name;
	    private String typeName;
        private String fill;
	    private Class<?> type;  
  
    public FieldDoc(){}  
      
    public FieldDoc(DocDesc desc, Field field) {  
        super();  
        this.meta = desc;  
        this.field = field;  
        this.name = field.getName();  
        this.type = field.getType(); 
        this.typeName = field.getType().getTypeName();
        if(meta != null){
            this.fill = meta.fill();
        }
        
    }  
      
      
    public FieldDoc(DocDesc desc, String name, Class<?> type) {  
        super();  
        this.meta = desc;  
        this.name = name;  
        this.type = type;  
        this.typeName=type.getTypeName();
    }  
  
      
    public DocDesc getDesc() {  
        return meta;  
    }  
    public void setDesc(DocDesc desc) {  
        this.meta = desc;  
    }  
    public Field getField() {  
        return field;  
    }  
    public void setField(Field field) {  
        this.field = field;  
    }  
    public String getName() {  
        return name;  
    }  
    public void setName(String name) {  
        this.name = name;  
    }  
  
    public Class<?> getType() {  
        return type;  
    }  
  
    public void setType(Class<?> type) {  
        this.type = type;  
    }  
      
    public String getTypeName(){
    	return typeName;
    }

    public String getFill() {
        return fill;
    }

    public void setFill(String fill) {
        this.fill = fill;
    }
} 